/*
 * @Author: your name
 * @Date: 2020-10-06 09:28:00
 * @LastEditTime: 2020-10-19 17:37:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_web\src\apis\Home.js
 */

import request from '@/utils/request'

//根据条件获取企业分页列表
export function getentBaseInfoList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getPageList',
        method: 'POST',
        data
    })
}


// 获取企业基本信息

export function getentBaseInfo(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/info',
        method: 'POST',
        data:{
            id
        }
    })
}


// 企业变更列表

export function getEntChangePageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntChangePageList',
        method: 'POST',
        data
    })
}


//分页获取企业商标注册信息

export function getEntBrandPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntBrandPageList',
        method: 'POST',
        data
    })
}

//分页获取企业著作权信息
export function getEntCopyrightPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntCopyrightPageList',
        method: 'POST',
        data
    })
}


//获取企业专利信息
export function getEntPatentPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntPatentPageList',
        method: 'POST',
        data
    })
}


//获取企业行政处罚信息
export function getEntPenaltyPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntPenaltyPageList',
        method: 'POST',
        data
    })
}


//企业详情页-资质分页列表

export function getEntZZPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntZZPageList',
        method: 'POST',
        data
    })
}


//荣誉资质

export function getEntEntHonorPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntEntHonorPageList',
        method: 'POST',
        data
    })
}
// 是否关注了企业

export function getIsAttentionEnt(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/getIsAttentionEnt',
        method: 'POST',
        data:{
            id
        }
    })
}


// 取关新增关注

export function attentionEnt(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/attentionEnt',
        method: 'POST',
        data
    })
}
// 获取企业名片
export function getEntHX(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntHX',
        method: 'POST',
        data
    })
}


// 国民经济经营行业字典 API


export function getJjhyList() {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entJjhy/getList',
        method: 'POST',
    })
}

// 获取企业的关注数
export function getAttentionTotalByObjId(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getAttentionTotalByObjId',
        method: 'POST',
        data:{
            id
        }
    })
}


// 获取资质详情
export function getEntCertById(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/entBaseInfo/getEntCertById',
        method: 'POST',
        data
    })
}